#!/bin/bash
for i in {1..10}
do
    ping -c 3 -i 0.2 -W 1 192.168.88.$i &> /dev/null
    if [ $? -eq 0 ];then
        echo "192.168.88.$i is up"
    else
        echo "192.168.88.$i is down"
    fi
done            